﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TRTCMain.Controls
{
    public partial class VideoUserStatusControl : UserControl
    {
        private bool isMutedByHost;

        public VideoUserStatusControl()
        {
            InitializeComponent();
        }

        //更新用户麦克风状态
        public void setMicroStatus(bool isMute) {
            this.picture_micro.Visible = isMute;
        }

        public void setCameraStatus(bool isMute) {
            this.picture_camera.Visible = isMute;
        }

        public bool IsMuted() {
            return isMutedByHost;
        }

        //更新用户是否被静音
        public void SetMuteStatus(bool isMuted) {
            isMutedByHost = isMuted;
        }
    }
}
